package com.masq.agencija.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.masq.agencija.interfaces.Rent;

public class RentsB implements Rents {
	private Map<String, Rent> rents = new HashMap<String, Rent>();
	
	public Collection<Rent> retrieve() {
		return rents.values();
	}

	public Rent save(Rent rent) {
		return rents.put(rent.getSifra(), rent);
	}
	
	public Rent retrieveSingleRent(String sifra) {
		return rents.get(sifra);
	}
}
